import React from "react";

interface RightButtonProps {
  onClick: () => void;
}

const RightButton: React.FC<RightButtonProps> = ({ onClick }) => {
  const buttonStyle = {
    color: "black",
    border: "none",
    cursor: "pointer",
    position: "absolute",
    right: 0, // 让按钮靠右
    backgroundColor: "#007bff", // 背景颜色设置为蓝色，你可以根据需要修改
  };

  const containerStyle = {
    position: "relative", // 父容器需要设置相对定位
  };

  return (
    <div style={containerStyle}>
      <button onClick={onClick} style={buttonStyle}>
        切换视频
      </button>
    </div>
  );
};

export default RightButton;
